package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ciaojian.core.enums.business.WorkerApplyStatusEnum;
import com.ciaojian.core.enums.business.WorkerApplyTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 员工申请表
 * </p>
 *
 * @author Atlakyn
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_worker_apply")
public class WorkerApply extends Model<WorkerApply> {
    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("提交时间")
    private Date applyDate;

    @ApiModelProperty("提交发型师Id")
    private Integer workerId;

    @ApiModelProperty("提交发型师名称")
    private String workerName;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("所属门店Id")
    private Integer storeId;

    @ApiModelProperty("所属门店名称")
    private String storeName;

    @ApiModelProperty("审核结果")
    private WorkerApplyStatusEnum status;

    @ApiModelProperty("申请事项")
    private WorkerApplyTypeEnum type;

    @ApiModelProperty("驳回理由")
    private String disallowReason;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
